<!--
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.springframework.org/schema/jdbc">

<head>
    <meta charset="UTF-8">
    <title>携人旅游</title>
    <link rel="stylesheet" type="text/css" href="css/common.css">
    <link rel="stylesheet" href="css/search.css">
    <script src="js/jquery-3.3.1.js"></script>
</head>
-->

<!-- 头部 start -->
<script>
    $(function () {
        $.get("findUserServlet",{},function (data) {
            //{uid:1,name:'李四'}
            var msg = "欢迎回来，"+data.name;
            $("#span_username").html(msg);

        });
    });

</script>

<header id="header">
    <div class="top_banner">
        <img src="images/top_banner.png"  width="100%" height="130" alt="">
    </div>
    <div class="shortcut">
        <!-- 未登录状态  -->
        <div class="login_out">
            <a href="http://localhost:8099/login.html">登录</a>
            <a href="http://localhost:8099/register.html">注册</a>
        </div>
        <!-- 登录状态  -->
        <div class="login">

            <span id="span_username"></span>
            <a href="myfavorite.html" class="collection">我的收藏</a>
            <a href="javascript:location.href='exitServlet';">退出</a>
        </div>
    </div>
</header>
<!-- 头部 end -->
<!-- 首页导航 -->
<div class="navitem">
    <ul class="nav">
        <li class="nav-active"><a href="index.html">首页</a></li>
        <li><a href="route_list.html">酒店</a></li>
        <li><a href="route_list.html">景点攻略</a></li>
        <li><a href="http://localhost:8080">旅游·景点</a></li>
        <li><a href="http://localhost:8081">美食</a></li>
        <li><a href="favoriterank.html">收藏排行榜</a></li>
    </ul>
</div>
